//
//  BaseController.m
//  TrainTree
//
//  Created by wanghui on 2017/8/24.
//  Copyright © 2017年 YouYeShu. All rights reserved.
//

#import "BaseController.h"
#import "LoadXibTool.h"

@interface BaseController ()

@end

@implementation BaseController

- (void)viewDidLoad {
    [super viewDidLoad];

    if (!self.navigationView) {
        self.navigationView = [LoadXibTool loadViewFromXibName:@"NavigationView"];
        [self.view addSubview:self.navigationView];

        [self.navigationView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(@0);
            make.left.equalTo(@0);
            make.right.equalTo(@0);
            make.height.equalTo(@60);
        }];
    }

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
